﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Diagnostics;

using iPhoneUI.Widgets;

namespace iPhoneUI.Shell
{
    public class WidgetConfig : Config
    {
        public WidgetConfig(XmlNode config)
            : base(config)
        {
        }

        public Type WidgetType
        {
            get
            {
                return Type.GetType(GetValue("@Type"), true, false);
            }
        }

        public SnapStyle SnapStyle
        {
            get
            {
                return (SnapStyle)GetValue("@Snap", SnapStyle.None);
            }
        }
    }
}
